#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstdio>
using namespace std;
int n;
int i, j;
int arr[1005];
int main()
{
	cin >> n;
	for (i = 1; i <= n; i++) {
		for (j = 1; j <= i / 2; j++) {
			arr[i] += arr[j];
		}
		arr[i]++;
	}
	cout << arr[n];
	return 0;
}